<extend name="Public/base" />

<block name="body">
  <!-- 标题栏 -->
  <div class="main-title">
    <h2>{$meta_title}</h2>
  </div>

  <!-- 按钮工具栏 -->
  <div class="cf">
    
    <div class="fl">
      <a class="btn" href="{:U('apply')}">刷 新</a>（点击"刷新"按钮清除搜索条件，显示全部信息。）
    </div>

    <!-- 高级搜索 -->
    <form id="J_search_form" action="{:U('apply')}" method="GET">
      <div class="search-form fr cf">
        <div class="sleft">
          <select name="grade">
            <option value="0">店铺等级</option>
            <volist name="grade" id="vo">
              <option value="{$key}" <eq name="_GET.grade" value="$key">selected</eq> >{$vo}</option>
            </volist>
          </select>
        </div>
        <div class="sleft">
          <input type="text" name="store" class="search-input" value="{:I('store')}" placeholder="请输入店铺名称">
        </div>
        <div class="fl">
          <select name="status">
            <option value="all">店铺状态</option>
            <option value="1" <eq name="_GET.status" value="1"> selected</eq>>新申请</option>
            <option value="2" <eq name="_GET.status" value="2"> selected</eq>>待付款</option>
            <option value="3" <eq name="_GET.status" value="3"> selected</eq>>审核失败</option>
            <option value="4" <eq name="_GET.status" value="4"> selected</eq>>缴费待审核</option>
            <option value="5" <eq name="_GET.status" value="5"> selected</eq>>缴费审核失败</option>
            <option value="6" <eq name="_GET.status" value="6"> selected</eq>>开店成功</option>
          </select>
        </div>
        <div class="sleft">
          <input type="text" name="seller" class="search-input" value="{:I('seller')}" placeholder="请输入店主卖家账号">
          <a class="sch-btn" href="javascript:;" id="J_search"><i class="btn-search"></i></a>
        </div>
      </div>
    </form>
  </div>
  
  <!-- 数据列表 -->
  <div class="data-table table-striped">
    <table class="">
      <thead>
        <tr>
          <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
          <th>UID</th>
          <th>绑定用户</th>
          <th>店铺名称</th>
          <th>店主卖家账号</th>
          <th>店铺等级</th>
          <th>店铺申请时间</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <notempty name="lists">
          <volist name="lists" id="vo">
            <tr class="status_trclass_1">
              <td><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
              <td>{$vo.member_id}</td>
              <td>{$vo.member_name}</td>
              <td>{$vo.store_name}</td>
              <td>{$vo.seller_name}</td>
              <td>{$grade[$vo['grade_id']]}</td>
              <td>{$vo.ctime|time_format }</td>
              <td>
                  <switch name="vo.status">
                      <case value="1"><span class="text-warning">新申请</span></case>
                      <case value="2"><span class="text-info">待付款</span></case>
                      <case value="3"><span class="text-warning">审核失败</span></case>
                      <case value="4"><span class="text-info">缴费待审核</span></case>
                      <case value="5"><span class="text-danger">缴费审核失败</span></case>
                      <case value="6"><span class="text-success">开店成功</span></case>
                  </switch>
              </td>
              <td>
<!--                <a href="{:U('detail?member_id='.$vo['member_id'].'&urlType=apply')}">[查看]</a>-->
                <a href="{:U('detail',['member_id'=>$vo['member_id']])}">[查看]</a>
              </td>
            </tr>
          </volist>
        <else/>
          <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
        </notempty>
      </tbody>
    </table>
  </div>
  <div class="page">
    {$_page}
  </div>
</block>

<block name="script">
  <script type="text/javascript" charset="utf-8">
    //导航高亮
    highlight_subnav('{:U('Store/apply')}');
  </script>
</block>
